from django.http import HttpResponse
from django.shortcuts import render
from .xiaozeweb import generate_info


# Create your views here.
def catchWebInfo(request):
    if request.method == 'GET':
        catchInfo = generate_info()
        return HttpResponse(catchInfo)


def index(request):
    return render(request, "catchbook.html")
